package com.hxzy.shop.order.dto.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @Author rlj
 * @Date 2021/7/14 13:22
 * @Version 1.0
 */
@Data
public class PlaceOrderReq implements Serializable {
    private static final long serialVersionUID = 222817500547847864L;


    @ApiModelProperty(value = "收货地址id")
    private Long userReceiverId;

    @ApiModelProperty("门店id")
    private Long storeId;

    @ApiModelProperty("药品集合")
    private List<PlaceOrderDrugReq> placeOrderDrugList;

    @ApiModelProperty("下单人")
    @NotNull(message = "下单人id不能为空")
    private Long memberId;


    @ApiModelProperty("优惠劵关联人id")
    private Long couponId;

    @ApiModelProperty("配送类型 1 自提 2 同城 3快递")
    private Integer packType;

    @ApiModelProperty("订单类型 1普通订单  2处方订单")
    private Integer orderType;

    @ApiModelProperty("是否包含分销")
    private Boolean distribute;

    @ApiModelProperty("是否包含分销自购")
    private Boolean distributeSelf;

    @ApiModelProperty("分销员id")
    private Long distributorId;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号,订单自提状态下必填")
    private String phone;

    /**
     * 购物卡id
     */
    @ApiModelProperty(value = "卡片id")
    private Long discountCardDetailsId;

    /**
     * 拼团id
     */
    @ApiModelProperty("拼团id")
    private Long groupBookingId;

    /**
     * 团长id
     */
    @ApiModelProperty("团长id")
    private Long sponsorId;

    /**
     * 积分商品id
     */
    @ApiModelProperty("积分商品id")
    private Long pointRewardId;

    /**
     * 是否采用京东物流
     */
    @ApiModelProperty("是否采用京东物流")
    private Boolean isJdExpress;
    /**
     * 是否代客下单
     */
    @ApiModelProperty("是否代客下单")
    private Boolean isCustomersOrder;

    /**
     * 是否为砍价商品
     */
    @ApiModelProperty("是否为砍价商品")
    private Boolean isHaggleDrug;


}
